requirejs.config({
  paths: {
    app: 'app',
    jquery: './vendor/zepto',
    fastclick: './vendor/fastclick',
    underscore: './vendor/underscore',
    backbone: './vendor/backbone',
    modles: './models',
    views: './views'
  },
  shim: {
    'backbone': {
      deps: ['underscore', 'jquery'],
      exports: 'Backbone'
    },
    'underscore': {
      exports: '_'
    },
    'jquery': {
      exports: '$'
    },
    fastclick: {
      deps: ['jquery']
    }
  },
  waitSeconds: 15
});

requirejs(['jquery', 'underscore', 'backbone', 'app'], function($, _, Backbone, app) {
  app.initialize();
});
